﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.WorkflowTemplate.WorkflowTemplateStepReviewerConfig
{
	/// <summary>
	/// 工作流模板步骤审核人配置
	/// </summary>
	public class WorkflowTemplateStepReviewerConfigRequestDto
	{
		/// <summary>
		/// 工作流模板Code
		/// </summary>		
		[Display(Name = "工作流模板Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateCode { get; set; }
		/// <summary>
		/// 工作流模板名称
		/// </summary>		
		[Display(Name = "工作流模板名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateName { get; set; }
		/// <summary>
		/// 步骤Code
		/// </summary>		
		[Display(Name = "步骤Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string TemplateStepCode { get; set; }
		/// <summary>
		/// 审核人表单序号
		/// </summary>		
		[Display(Name = "审核人表单序号")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int Id { get; set; }
		/// <summary>
		/// 审核人表单Key
		/// </summary>		
		[Display(Name = "审核人表单Key")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(100, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string Key { get; set; }
		/// <summary>
		/// 审核人类型
		/// </summary>		
		[Display(Name = "审核人类型")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string PermissionType { get; set; }
		/// <summary>
		/// 审核人类型
		/// </summary>		
		[Display(Name = "审核人类型")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string PermissionTypeStr { get; set; }
		/// <summary>
		/// 审核人映射Id
		/// </summary>		
		[Display(Name = "审核人映射Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string PermissionReferenceId { get; set; }
		/// <summary>
		/// 审核人映射名称
		/// </summary>		
		[Display(Name = "审核人映射名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string PermissionReferenceName { get; set; }
	}
}

